﻿<%@ page title="" language="C#" masterpagefile="~/Site.master" autoeventwireup="true" inherits="UserAccount, MainSite" %>

<asp:Content ID="Content1" ContentPlaceHolderID="BodyContent" runat="Server">
    <div class="contentfull">
        <div class="breadcrumbs">
            <ul id="crumbs">
                <li><a title="My Account" href="#">My Account</a>
                    <img src="Content/Images/separator.png" alt="&rarr;" class="separator">
                    Settings 			</li>
            </ul>
        </div>

        <div id="showMessages">
            <%  GetMessage(); %>
        </div>

        <div class="top">
            <div class="innerleft">
                <h1>Account</h1>

                <div class="tabs_box">
                    <ul id="tabs">
                        <li><a href="#" class="tabs_on">Settings</a></li>
                        <% if (UserObject.RoleId == 1)
                           { %>
                        <li><a href="UserManagement.aspx" class="tabs_off">User Management</a></li>
                        <%} %>
                        <li><a href="AddDevices.aspx" class="tabs_off">App Users & Devices</a></li>
                        <li><a href="DeleteAccount.aspx" class="tabs_off">Account Deactivation</a></li>

                    </ul>
                </div>
            </div>
        </div>
        <div class="content">

            <fieldset>
                <h2>Settings</h2>
                <form method="post" action="UserAccount.aspx?mode=edit">
                    <input type="hidden" name="action" value="edit2" />
                    <label for="email">First Name:</label>
                    <input type="text" class="inputed" name="fname" id="fname" value="<%= UserObject.FirstName %>" />
                    <label for="email">Last Name:</label>
                    <input type="text" class="inputed" name="lname" id="lname" value="<%= UserObject.LastName  %>" />
                    <label for="email">Phone Number:</label>
                    <input type="text" class="inputed" name="phone" id="phone" value="<%= UserObject.PhoneNumber %>" />
                    <label for="email">Email:</label>
                    <input type="text" class="inputed" name="email" id="email" value="<%= UserObject.EmailId %>" />
                    <label for="expir">Account Expiry:</label>
                    <input type="text" <%= isExpiryEnable %> class="inputed" name="expir" id="expir" value="<%= UserObject.AccountExpiry.ToString() %>" />
                    <label for="password">Password:</label>
                    <a name="password" href="ChangePassword.aspx">Change Password</a><br />
                    <label for="company">Company</label>
                    <input type="text" class="inputed" name="company" id="company" value="<%= UserObject.Company %>" />

                    <br />
                    <label class="label" for="timezone">Timezone</label>
                    <select class="inputed" name="timezone" id="timezone">
                        <%= FillTimeZoneControl() %>
                        <%-- <option value="-12.0">(GMT -12:00) International Date Line West</option>
                        <option value="-11.0">(GMT -11:00) Midway Island, Samoa</option>
                        <option value="-10.0">(GMT -10:00) Hawaii</option>
                        <option value="-9.0">(GMT -9:00) Alaska</option>
                        <option value="-8.0">(GMT -8:00) Pacific Time (US &amp; Canada)</option>
                        <option value="-7.0">(GMT -7:00) Mountain Time (US &amp; Canada)</option>
                        <option value="-6.0">(GMT -6:00) Central Time (US &amp; Canada), Mexico City</option>
                        <option selected value="-5.0">(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima</option>
                        <option value="-4.0">(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz</option>
                        <option value="-3.5">(GMT -3:30) Newfoundland</option>
                        <option value="-3.0">(GMT -3:00) Brazil, Buenos Aires, Georgetown</option>
                        <option value="-2.0">(GMT -2:00) Mid-Atlantic</option>
                        <option value="-1.0">(GMT -1:00) Azores, Cape Verde Islands</option>
                        <option value="0.0">(GMT) Western Europe Time, London, Lisbon, Casablanca</option>
                        <option value="1.0">(GMT +1:00) Brussels, Copenhagen, Madrid, Paris</option>
                        <option value="2.0">(GMT +2:00) Kaliningrad, South Africa</option>
                        <option value="3.0">(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg</option>
                        <option value="3.5">(GMT +3:30) Tehran</option>
                        <option value="4.0">(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi</option>
                        <option value="4.5">(GMT +4:30) Kabul</option>
                        <option value="5.0">(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
                        <option value="5.5">(GMT +5:30) Bombay, Calcutta, Madras, New Delhi</option>
                        <option value="5.75">(GMT +5:45) Kathmandu</option>
                        <option value="6.0">(GMT +6:00) Almaty, Dhaka, Colombo</option>
                        <option value="7.0">(GMT +7:00) Bangkok, Hanoi, Jakarta</option>
                        <option value="8.0">(GMT +8:00) Beijing, Perth, Singapore, Hong Kong</option>
                        <option value="9.0">(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk</option>
                        <option value="9.5">(GMT +9:30) Adelaide, Darwin</option>
                        <option value="10.0">(GMT +10:00) Eastern Australia, Guam, Vladivostok</option>
                        <option value="11.0">(GMT +11:00) Magadan, Solomon Islands, New Caledonia</option>
                        <option value="12.0">(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka</option>--%>
                    </select>
                    <%--  *Updated Timezone will reflect once you logout and login again.--%>
                    <br />
                    <label for="expir">User Allowed:</label>
                    <input type="text" <%= isExpiryEnable %> class="inputed" name="userCount" id="userAllowed" value="<%= UserObject.DeviceLimit.ToString() %>" />


                    <br />
                    <input type="submit" name="updateAccountButton" value="Update Account" class="black_button blarge" />


                </form>
                <br />
        </div>
        <div style="clear: both;">&nbsp;</div>
    </div>
</asp:Content>

